/**
 * 该包包含与用户管理相关的类和接口。
 *
 * <p> 主要包括用户的注册、登录、权限管理等功能。 </p>
 *
 * @since 1.0
 * @version 1.0
 */
package mju.cxf;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;

import org.redisson.spring.session.config.EnableRedissonHttpSession;
import org.redisson.spring.session.config.EnableRedissonWebSession;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@SpringBootApplication
@EnableTransactionManagement //开启注解方式的事务管理
@MapperScan("mju.cxf.mapper")
@EnableWebMvc
@EnableKnife4j
@EnableScheduling
@Slf4j
public class CxfApplication {
    /**
     * 启动类.
     * @param args 输入变量列表 已废弃 system.in
     */
    public static void main(final String[] args) {
        SpringApplication.run(CxfApplication.class, args);
        log.info("server started");
        getCxf();
    }
    private static void getCxf() {
        System.out.println("------卡先锋后端启动成功-------");
        System.out.println("      .--.    .--.");
        System.out.println("     |o_o |  | o_o |");
        System.out.println("     |:_/ |  | \\_: |");
        System.out.println("    ｜｜   \\ \\ /   \\ \\");
        System.out.println("   (|     | |     | |)");
        System.out.println("  /'\\_   _/ \\_   _/`\\");
        System.out.println("  \\___)=(___)     \\\\___)");
        System.out.println("   \u001B[35mSeven Monkey Brother!\u001B[0m");
        System.out.println("   _____   __     __    ______  ");
        System.out.println("  / ____|  \\ \\   / /   |  ____| ");
        System.out.println(" | |        \\ \\_/ /    | |__     ");
        System.out.println(" | |         \\   /     |  __|    ");
        System.out.println(" | |____     / /\\_\\    | |  ");
        System.out.println("  \\_____|  /_/   \\_\\   |_｜  ");
        System.out.println("----------------------------");
    }
}
